package com.tc.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * <p>
 * 患者诊疗服务医嘱数据传输对象
 * </p>
 *
 * @author tc
 * @since 2025-07-12
 */
@Data
@ApiModel(value = "Patient_service_orderDTO对象", description = "患者诊疗服务医嘱DTO")
public class Patient_service_orderDTO {
    
    @ApiModelProperty(value = "医嘱ID")
    private Long orderId;

    @ApiModelProperty(value = "患者ID")
    @NotNull(message = "患者ID不能为空")
    private Long patientId;

    @ApiModelProperty(value = "服务ID")
    @NotNull(message = "服务ID不能为空")
    private Long serviceId;

    @ApiModelProperty(value = "数量")
    @NotNull(message = "数量不能为空")
    @Min(value = 1, message = "数量必须大于0")
    private Integer quantity;

    @ApiModelProperty(value = "开具时间")
    private LocalDateTime orderTime;

    @ApiModelProperty(value = "医生ID")
    private Long doctorId;
}
